package com.lu.search.controller.v1;


import com.lu.model.common.dtos.ResponseResult;
import com.lu.model.search.dto.UserSearchDto;
import com.lu.search.pojo.ApAssociateWords;
import com.lu.search.service.ApAssociateWordsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/api/v1/associate")
public class ApAssociateWordsController {

    @Autowired
    private ApAssociateWordsService apAssociateWordsService;


    @PostMapping("/search")
    public ResponseResult searchWords(@RequestBody UserSearchDto dto) {
        return apAssociateWordsService.searchWords(dto);
    }
}
